﻿using System;

namespace STX.Lib.Caching
{
    /// <summary>
    /// 缓存提供者接口
    /// </summary>
    public interface ICacheProvider
    {
        T Get<T>(string key);
        void Set(string key, object value);
        void Set(string key, object value, int expiresSecond);
        bool IsSet(string key);
        void Remove(string key);
        void Clear();
    }
}
